<div class="page_title">
    <span class="title_icon"><span class="blocks_images"></span></span>
    <h3>Motivos de consultas</h3>    
</div>
<div id="content">
    <div class="grid_container">
        <div class="grid_8">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon blocks_images"></span>
                    <h6>Listado de sintomas de <?php echo $nombre; ?></h6>
                </div>
                <div class="widget_content">                    
                    <table class="display data_tbl">
                        <thead>
                            <tr>
                                <th>Item</th>
                                <th>Sintoma</th>
                                <th>Alerta</th>
                                <th>Acciones</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $i = 1;
                            foreach ($sintomas as $p):
                                ?>
                                <tr class="gradeA">
                                    <td>
                                        <?php
                                        echo $i;
                                        ?>
                                    </td>           
                                    <td><?php echo h($p['Concepto']['signo']); ?></td>     
                                    <td>
                                        <?php echo h($p['Alerta']['color']); ?>
                                    </td>                               
                                    <td>
                                        <?php echo $this->Ajax->link('EDITAR', array('action' => 'ajaxcargaedit', $p['Concepto']['id'] ), array( 'update' => 'cargaedit', 'title' => 'Edicion de datos', 'escape' => false));?>
                                        &nbsp;
                                        <?php
                                        echo $this->Ajax->link(
                                                'VER', array(
                                            'action' => 'ajaxcargaver', $p['Concepto']['id']
                                                ), array(
                                            'update' => 'cargaedit',
                                            'title' => 'Edicion de datos',
                                            'escape' => false
                                                )
                                        );
                                        ?>
                                        &nbsp;
                                        <?php echo $this->Html->link('ELIMINAR', array('action' => 'deletesintoma', $p['Concepto']['id'], $p['Concepto']['trauma_id']), null, 'esta seguro de eliminar el sintoma item # ' . $i . '?') ?>

                                    </td> 
                                </tr>                           
                                <?php
                                $i++;
                            endforeach;
                            ?>
                        </tbody>
                        <!--<tfoot>
                            <tr>
                                <th>Nombre</th>
                                <th>Descripcion</th>
                                
                            </tr>
                        </tfoot>
                        -->
                    </table>
                </div>
            </div>
        </div>

        <div class="grid_4">
            <div  id="cargaedit">

                <div class="widget_wrap">
                    <div class="widget_top">
                        <span class="h_icon blocks_images"></span>
                        <h6>Registro de nuevo sintoma</h6>
                    </div>
                    <div class="widget_content">
                        <?php echo $this->Form->create('Trauma', array('action' => 'sintomas', 'id' => 'formregistrosintoma', 'class' => 'form_container left_label')); ?>
                        <!--                    <form action="#" method="post" id="regitstraion_form" class="form_container left_label">-->
                        <?php echo $this->Form->hidden('Concepto.trauma_id', array('value' => $id)) ?>
                        <ul>
                            <li>
                                <div class="form_grid_12">
                                    <label class="field_title" for="name">Sintoma<span class="req">*</span></label>
                                    <div class="form_input">
                                        <?php echo $this->Form->textarea('Concepto.signo', array('class' => 'text required', 'tabindex' => '1')) ?>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="form_grid_12">
                                    <label class="field_title" for="username">Alerta <span class="req">*</span></label>
                                    <div class="form_input">
                                        <select data-placeholder="Seleccione la alerta..." class="chzn-select full" name="data[Concepto][alerta_id]" tabindex="4" id="cb_dpto">
                                            <option value=""></option>
                                            <?php foreach ($alertas as $a): ?>
                                                <option value="<?php echo $a['Alerta']['id'] ?>">
                                                    <?php echo $a['Alerta']['color'] ?>
                                                </option>
                                            <?php endforeach; ?>
                                        </select>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="form_grid_12">
                                    <label class="field_title" for="username">Tabla score <span class="req">*</span></label>
                                    <div class="form_input">
                                        <select data-placeholder="Seleccione la tabla de referencia..." class="chzn-select full" name="data[Concepto][scor_id]" tabindex="4" id="cb2">
                                            <option value=""></option>
                                            <?php foreach ($scors as $a): ?>
                                                <option value="<?php echo $a['Scor']['id'] ?>">
                                                    <?php echo $a['Scor']['nombre'] ?>
                                                </option>
                                            <?php endforeach; ?>
                                        </select>
                                    </div>
                                </div>
                            </li>
                            <li>

                            </li>

                            <li>
                                <div class="form_grid_12">
                                    <div class="form_input">
                                        <button type="submit" class="btn_small btn_blue"><span>Guardar nuevo sintoma</span></button>
                                        <button type="reset" class="btn_small btn_blue"><span>Limpiar datos</span></button>
                                    </div>
                                </div>
                            </li>
                        </ul>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php //echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $trauma['Trauma']['id']), null, __('Are you sure you want to delete # %s?', $trauma['Trauma']['id']));  ?>
                


